package com.Service;
import com.Dao.InsertInfoDao;
import com.pojo.AuthorApply;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;

@Service
@Slf4j
public class AuthorApplyService {
    @Autowired
    private InsertInfoDao insertInfoDaoImp;
    public void insertInfo(AuthorApply authorApply) throws SQLException {
        insertInfoDaoImp.insertInfo(authorApply.getAliasName(),authorApply.getProfile(),
                authorApply.getUsername(),authorApply.getWechat());
    }
}
